import service from '@/utils/request'
// import { createService } from '@/utils/request'
import { AxiosResponse } from 'axios'
import qs from 'qs'
import {reqLoginForm} from "./type";

enum API {
     UserLoginURL = '/teach-system/student/login',
     MyStudentInfoURL = '/teach-system/student/get-my-info',
}

//学生登录
export const userLogin = (data: reqLoginForm) => {
    return service.teachService.post<any,AxiosResponse<any>>(
        API.UserLoginURL,
        data,
    )
}

//获取学生个人信息
export const getStudentInfo = () => {
    return service.teachService.get<any,AxiosResponse<any>>(
        API.MyStudentInfoURL
    )
}

